#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>


//8  1000
//6  0110
//^  1110
//1  0001
//&  0000


int main()
{
	int arr[] = { 1,2,3,4,8,1,2,3,4,6 };
	int i = 0;
	int num = 0;
	for (i = 0; i < 10; i++)
	{
		num ^= arr[i];
	}
	int pos = 0;
	for (i = 0; i < 32; i++)
	{
		int temp = num & 1 << i;
		if (temp)
		{
			pos = i;
			break;
		}
	}
	int ret[2] = { 0 };
	for (i = 0; i < 10; i++)
	{
		if (arr[i] & 1 << pos)
		{
			ret[0] ^= arr[i];
		}
		else
			ret[1] ^= arr[i];
	}
	printf("%d %d\n", ret[0], ret[1]);
	return 0;
}







